﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SwParaPlatform2.dlgUIConfig
{
    public partial class dlgEditList : Form
    {

        public dlgEditList(List<string> inputList)
        {
            InitializeComponent();

            // 将列表转换为以 "，" 分隔的字符串
            string listString = string.Join("，", inputList);

            // 将字符串填入 textBox1
            textBox1.Text = listString;
        }

        public string InputData
        {
            get { return textBox1.Text; }
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK; // 设置对话框结果为OK
            this.Close(); // 关闭窗体
        }
    }
}
